import request from '../utils/request';

export function getService(token, url) {
  const options = {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
      authorization: token,
    },
  };
  return request(url, options);
}

export function postValueService(token, value, url) {
  const options = {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      authorization: token,
    },
    body: JSON.stringify(value),
  };
  return request(url, options);
}
